#!/bin/bash

export DOCUSAURUS_BASE_URL="$1"
export INTERNAL_STATIC_DOCS=1
yarn install

../facebook/wasm.sh
cp ../pyrefly_wasm/target/pyrefly_wasm.js src/sandbox/pyrefly_wasm.js
cp ../pyrefly_wasm/target/pyrefly_wasm_bg.wasm.opt src/sandbox/pyrefly_wasm_bg.wasm

export USE_SIMPLE_CSS_MINIFIER=true
yarn build
